package com.china08.yxyapi.entity.mg.cookbook;

import java.util.List;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 食谱
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.sch.manager.cookbook")
public class CookBook extends MongoBaseEntityNoId {

    /**
     * 学校+星期,作为id 00000000_1 (代表 : 学校id1_星期日，学校id2_星期一)
     */
    @Id
    private String id;

    /**
     * 学校id
     */
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 学校名称
     */
    @Field(value = "school_name")
    private String schoolName;

    /**
     * 星期Id, 1-7
     */
    @Field(value = "week_id")
    private Integer weekId;

    /**
     * 中文 星期一---星期七
     */
    @Field(value = "week_name")
    private String weekName;

    /**
     * 早餐
     */
    @Field(value = "breakfast")
    private Meal breakfast;

    /**
     * 早点
     */
    @Field(value = "breakfast_cakes")
    private Meal breakfastCakes;

    /**
     * 午餐
     */
    @Field(value = "lunch")
    private Meal lunch;

    /**
     * 午餐点心
     */
    @Field(value = "lunch_cakes")
    private Meal lunchCakes;

    /**
     * 晚餐
     */
    @Field(value = "dinner")
    private Meal dinner;

    public class Meal {
        // 食谱名称
        private String name;
        // 对应的图片链接地址
        private List<String> images;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<String> getImages() {
            return images;
        }

        public void setImages(List<String> images) {
            this.images = images;
        }

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public Integer getWeekId() {
        return weekId;
    }

    public void setWeekId(Integer weekId) {
        this.weekId = weekId;
    }

    public String getWeekName() {
        return weekName;
    }

    public void setWeekName(String weekName) {
        this.weekName = weekName;
    }

    public Meal getBreakfast() {
        return breakfast;
    }

    public void setBreakfast(Meal breakfast) {
        this.breakfast = breakfast;
    }

    public Meal getBreakfastCakes() {
        return breakfastCakes;
    }

    public void setBreakfastCakes(Meal breakfastCakes) {
        this.breakfastCakes = breakfastCakes;
    }

    public Meal getLunch() {
        return lunch;
    }

    public void setLunch(Meal lunch) {
        this.lunch = lunch;
    }

    public Meal getLunchCakes() {
        return lunchCakes;
    }

    public void setLunchCakes(Meal lunchCakes) {
        this.lunchCakes = lunchCakes;
    }

    public Meal getDinner() {
        return dinner;
    }

    public void setDinner(Meal dinner) {
        this.dinner = dinner;
    }

}
